import request from "@/utils/request";

export const healList = (search) =>
    request({
        url: "/healAll",
        method: "get",
        params: {
            healCoding: search.healCoding,
            healType: search.healType,
            offset: search.offset,
            limit: search.limit
        }
    })

export const deleteHeal = (id) =>
    request({
        url: "/deleteHeal" + id,
        method: "delete"
    })

export const addHealth = (rhealth) =>
    request({
        url: "/addHeal",
        method: "post",
        data: rhealth,
    })

export const healBefore = (id) =>
    request({
        url: "/healSeleUpdate" + id,
        method: "post",
    })

export const healUpdate = (healmodel) =>
    request({
        url: "/rHealEdit",
        method: "put",
        data: healmodel
    })